package com.zsrt.common;

public class ResponseEntity {

	
	private String code;
	
	private String message;
	

	public static final String RESULT="result";
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public ResponseEntity(String code, String message) {
		super();
		this.code = code;
		this.message = message;
	}
	
	
	public static ResponseEntity getSuccessMessage(){
		return new ResponseEntity("200","success");
	}
	
	
	/**
	 * 500的责任在后台
	 * @return
	 */
	public static ResponseEntity getFailureMessage(){
		return new ResponseEntity("500","failure");
	}
	
	/**
	 * 300的责任在前台
	 * @return
	 */
	public static ResponseEntity getCheckMessage(){
		return new ResponseEntity("300","failure");
	}
	
	
	
	
	
	
}
